from django.conf.urls import patterns, url
from .views import home, contact,  register

urlpatterns = patterns('',                       
    url(r'^$', home.as_view(), name='home'),    
    url(r'^contact/$', contact.as_view(), name='contact'),
  # url(r'^contact/thanks/$', contact.as_view(), name='thanks'),
    url(r'^login/$', 'django.contrib.auth.views.login', {'template_name':'home/login.html'}, name='login'), 
  #  url(r'^login/$', login.as_view(), name='login'),
    url(r'^register/$', register.as_view(), name='register'),   
    url(r'^cerrar/$', 'django.contrib.auth.views.logout_then_login',  name='logout'),
)